<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>常见的网页布局</title>
    <style>
        * {
            padding: 0;
            margin: 0;
            text-align: center;
        }
        .top {
            height: 20px;
            background-color: purple;
        }

        .banner {
            width: 800px;
            height: 200px;
            background-color: skyblue;
            margin: 10px auto;
        }

        .box {
            width: 800px;
            height: 900px;
            background-color: pink;
            margin: 10px auto;
        }
        /* box里面的亲儿子 */
        .box>div {
            float: left;
            width: 350px;
            height: 400px;
            background-color: skyblue;
            margin-top: 33px;
            margin-left: 33px;
        }

        .footer {
            height: 400px;
            background-color: brown;
        }
    </style>
</head>
<body>
    <div class="top">TOP</div>
    <div class="banner">BANNER</div>
    <div class="box">
        <p>BOX</p>
        <div>1</div>
        <div>2</div>
        <div>3</div>
        <div>4</div>
    </div>
    <div class="footer">FOOTER</div>
</body>
</html>